<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="UTF-8" />
        <meta name="viewport" content="width=device-width, initial-scale=1.0" />
        <meta http-equiv="X-UA-Compatible" content="ie=edge" />
        <title>Document</title>
        <style>
            * {
                margin: 0;
                padding: 0;
            }

            ul,
            ol,
            li {
                list-style: none;
            }
        </style>
    </head>
    <body>
        <ul>
            <li>1</li>
            <li>2</li>
            <li>3</li>
            <li>4</li>
            <li>5</li>
            <li>6</li>
            <li>7</li>
            <li>8</li>
            <li>9</li>
            <li>10</li>
        </ul>

        <script src="./jquery/jquery-3.6.0.min.js"></script>

        <!-- 找到ul下的全部li并设置点击事件 -->
        <script>
            console.log( $("li") );

            /* 选中元素以后 不管干啥 都是对所有元素进行批量操作 */
            $("li").click(function () {
                console.log("我被点击了", this, $(this));
            });
            
        </script>
    </body>
</html>
